﻿using Domain.Entities;
using System;
using System.Collections.Generic;
using System.Text;

namespace Application.RoleApp
{
    public interface IRoleAppService
    {

        Role GetById(Int32 id);

        List<Role> GetAll(string key);

        List<Role> GetPageList(string SearchKeyWords, int PageSize, int PageCurrent, string OrderField, bool OrderDirection = true);
        bool AddOrUpdate(Role model);

        bool DeleteById(int id);
        string GetRoleMenuHtml(int RoleId, int menurootid);
        string GetRoleRootMenu(int RoleId);
    }
}
